<%--
  @author Kusal Samarakoon
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<script type="text/javascript">
    $(function () {
        $('#cancelBtnId').val($('#cancelBtn').val());
        $('#printBtnId').val($('#printBtn').val());

    });

</script>

<div id="land-registration-module-home-title" class="module-home-title">

    <div id="printCancelBtn" class="form-button-div right-align">
            <input type="button" id="printBtnId" onclick="printPage('printOuter', 'A4', 'P');"/>
            <input type="button" id="cancelBtnId" onclick="window.close();"/>
            <%--<s:submit cssClass="cancel" action="home" value="%{getText('cancel.label')}"/>--%>
        </div>
</div>

<div id="printOuter">
<div id="init-land-association">
    <table>

                <tr>
                    <td class="left-align"><s:label value="%{getText('slmsSerialNumber.label')}"/> :</td>
                    <td class="left-align"><s:label name="land.id"/></td>

                </tr>
                <tr>
                    <td class="left-align"><s:label value="%{getText('land_name.label')}"/> :</td>
                    <td class="left-align"><s:textfield id="landName"
                                                        name="landAssociation.land.nameOfTheLand"
                                                        readonly="true"/></td>
                </tr>

                <tr>
                    <td><s:label value="%{getText('alienation_methods.label')}" cssClass="mandatory-field"/></td>
                    <td><s:checkboxlist id="alienationMethodSetId" list="alienationMethodSet"
                                        name="alienationMethods"
                                        value="amSelectedList"
                                         theme="checkbox-theme" disabled="true"/></td>
                </tr>

                <tr>
                    <td class="left-align"><s:label value="%{getText('purpose.label')}"/> :</td>
                    <td class="left-align"><s:textarea id="purpose" cssClass="width-610-px"
                                                       name="landAssociation.purpose" readonly="true"/></td>
                </tr>


            </table>
            <s:include value="../../documentUpload.jsp"/>

            <s:hidden name="land.id"/>
            <s:hidden name="landAssociation.id"/>


</div>
</div>

<s:hidden id="pls_select_item" value="%{getText('pls_select_alienation_method.label')}"/>
<s:hidden id="editMode" name="editMode"/>
<s:hidden id="landId" name="land.id"/>
<s:hidden id="pls_enter_comment_on_rejection" value="%{getText('pls_enter_comment_on_rejection.label')}"/>
<s:hidden id="printBtn" value="%{getText('print.label')}"/>
<s:hidden id="cancelBtn" value="%{getText('cancel.label')}"/>

